﻿<%@ Page Language="C#" MasterPageFile="MasterPage.master" CodeFile="list.aspx.cs" Inherits="vboard_membership_list"  %>

<asp:Content ID="Content" ContentPlaceHolderID="ContentPlaceHolder" Runat="Server">
	<script type="text/javascript">
		function GetOnlineStatusString(isOnline)
		{
			if(isOnline)
			{
				document.write('<span class=\"Online\">&nbsp;Online&nbsp;</span>');
			}
			else
			{
				document.write('<span class=\"Offline\">&nbsp;Offline&nbsp;</span>');
			}
		}
	</script>

	<div class="Title"><%= GetLocalResourceObject("Title").ToString() %></div>

	<div class="ControlForm">
		<div class="Content"><%= GetLocalResourceObject("Content").ToString()%></div>
		<asp:Repeater ID="MemberListRepeater" runat="server">
			<ItemTemplate>
				<div class="UserInfo">
					<div class="UserPicture"><img src='<%# VUtility.GetMemberImageUrl(Eval("ProviderUserKey").ToString()) %>' alt="" /></div>

					<div>
						<strong><%# Eval("UserName") %></strong>
						<script type="text/javascript">GetOnlineStatusString(<%# Eval("IsOnline").ToString().ToLower() %>)</script>
					</div>

					<div><%# Eval("CreationDate")%> <%# GetLocalResourceObject("RegisterDate").ToString() %></div>

					<div><%# Eval("LastLoginDate")%> <%# GetLocalResourceObject("LastLoginDate").ToString() %></div>
				</div>
			</ItemTemplate>
		</asp:Repeater>

		<div style="clear : both;">
			<VWeb:PagerButton ID="MemberListPagerButton" runat="server"
				Mode="Link"
				PageIndexQueryStringName="pi"
				SelectedNumericButtonTextFormat="<b>{0}</b>">
			</VWeb:PagerButton>
		</div>
	</div>
</asp:Content>